package PyroBots.Vue.Listeners;

import java.awt.event.MouseEvent;
import java.awt.event.MouseListener;
import java.util.HashSet;

import PyroBots.Controlleur.CSimulateur;
import PyroBots.Vue.ButtonFlipFlop;
import PyroBots.Vue.VueLog;
import PyroBots.Vue.VueSimu;

public class ButtonStopListener implements MouseListener {
	
	CSimulateur c_simu;
	ButtonFlipFlop b_flip;
	private VueSimu v_simu;
	private VueLog v_log;
	
	public ButtonStopListener (CSimulateur s, ButtonFlipFlop b, VueSimu v,VueLog l) {
		this.c_simu = s;
		this.b_flip = b;
		this.v_simu = v;
		this.v_log = l;
	}
	
	@Override
	public void mouseClicked(MouseEvent e) {
		this.c_simu.stop();
		this.c_simu.getcFlotte().reinitFlotte();
		this.c_simu.getSimulateur().getManager().getTerrain().reinitTerrain();
		this.b_flip.reinit();
		this.v_simu.reinit();
		this.v_log.reinit();
	}

	@Override
	public void mouseEntered(MouseEvent e) {
		// TODO Auto-generated method stub
		
	}

	@Override
	public void mouseExited(MouseEvent e) {
		// TODO Auto-generated method stub
		
	}

	@Override
	public void mousePressed(MouseEvent e) {
		// TODO Auto-generated method stub
		
	}

	@Override
	public void mouseReleased(MouseEvent e) {
		// TODO Auto-generated method stub
		
	}
}
